package com.jinxin.platform.cdacscontrolmgr.service.impl;


import com.jinxin.platform.cdacscontrolmgr.bean.CdparkmanagerProjectBarrier;
import com.jinxin.platform.cdacscontrolmgr.mapper.CdacsControlmgrProjectBarrierMapper;
import com.jinxin.platform.cdacscontrolmgr.service.ICdacsControlmgrProjectBarrierService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.util.StringUtils;

import java.util.HashMap;

/**
 * All rights Reserved, Designed By www.beonelot.com
 *
 * @version: V1.0
 * @Copyright: www.beonelot.com Inc. All rights reserved.
 * @Description：
 * @Date: 2021-09-14
 * @Author: Lingnan
 **/
@Service
public class CdacsControlmgrProjectBarrierServiceImpl implements ICdacsControlmgrProjectBarrierService {
    @Autowired
    CdacsControlmgrProjectBarrierMapper cdacsControlmgrProjectBarrierMapper;

    @Override
    public CdparkmanagerProjectBarrier getById(String id) {
        if(StringUtils.isEmpty(id)){return null;}
        return cdacsControlmgrProjectBarrierMapper.selectByKey(id);
    }

    @Override
    public CdparkmanagerProjectBarrier selectOne(HashMap param) {
        return cdacsControlmgrProjectBarrierMapper.selectOne(param);
    }


}
